package com.example.service.impl;

import com.example.entity.ComInformation;
import com.example.entity.Company;
import com.example.mapper.CompanyMapper;
import com.example.mapper.RecruitMapper;
import com.example.service.CompanyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cyk
 * @since 2022-02-19
 */
@Service
public class CompanyServiceImpl extends ServiceImpl<CompanyMapper, Company> implements CompanyService {

    @Autowired
    CompanyMapper companyMapper;

    @Override
    public boolean updateCompany(Company company) {
        return companyMapper.updateCompany(company);
    }

    @Override
    public int saveCompany(Long uid) {
        return companyMapper.saveCompany(uid);
    }

    @Override
    public int deleteCompany(Long id) {
        return companyMapper.deleteCompany(id);
    }

    @Override
    public Company companyById(Long id) {
        return companyMapper.companyById(id);
    }

    @Override
    public ComInformation comInformation(Long id) {
        return companyMapper.comInformation(id);
    }
}
